package com.xiaodao.beandefinition;

import com.xiaodao.dao.IndexDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

//@Component
//@Scope("prototype")
public class HomeService {

//	public HomeService() {
//		System.out.println("无参数 构造方法");
//
//
//	}

	public HomeService(OrderService orderService) {
		System.out.println("home->orderservice");
	}

	public HomeService(OrderService orderService, UserService userService) {
		System.out.println("home->orderservice-->userService");
	}

	public HomeService(OrderService orderService, IndexDao indexDao) {
		System.out.println("home->orderservice-->indexDao");
	}

	public HomeService(OrderService orderService, Class clazz) {

		System.out.println("home->orderservice-->clazz");
	}

	private HomeService(OrderService orderService, Class clazz, String ss) {
		System.out.println("home->orderservice-->clazz");
	}


	public void testAop() {
		System.out.println("我来是");
	}
}
